package inger.redpac.server;

import inger.redpac.consts.PacketTypes;

public class ReqeustContext {

	private String msgId;

	private int requestType;

	private String returnQueueName;

	public ReqeustContext(String msgId, int requestType, String returnQueueName) {
		super();
		this.msgId = msgId;
		this.requestType = requestType;
		this.returnQueueName = returnQueueName;
	}

	public String getMsgId() {
		return msgId;
	}

	public int getRequestType() {
		return requestType;
	}
	
	public boolean isRequestFuncall() {
		return requestType == PacketTypes.REQUEST;
	}
	
	public boolean isRequestNotify() {
		return requestType == PacketTypes.NOTIFY;
	}

	public String getReturnQueueName() {
		return returnQueueName;
	}

}
